/**
 * Created by minigci.he on 16/9/19.
 */
module.exports = {
    devtool: 'source-map',
    entry: __dirname + '/app/main.js',
    output:{
        path: __dirname + '/public',
        filename: 'main.js'
    },
    module:{
        loaders:[
            {
                test: /\.js/,
                exclude: /node_modules/,
                loader: 'babel',
                query:{
                    presets: ['es2015']
                }

            }
        ]
    },
    devServer:{
        contentBase: './public',
        port: 3000,
        colors: true,
    }
}

